class Job:

    def __init__(self, **kwargs):
        self.id = kwargs.get('id')
        self.job_id = kwargs.get('job_id', '')
        self.func_name = kwargs.get('func_name', '')
        self.func_args = kwargs.get('func_args', [])
        self.func_kwargs = kwargs.get('func_kwargs', {})
        self.sched_times = kwargs.get('sched_times', 0)
        self.max_sched_times = kwargs.get('max_sched_times', 200)
        self.next_run_time = kwargs.get('next_run_time', 0)
        self.delay_seconds = kwargs.get('delay_seconds', 0)
        self.create_time = kwargs.get('create_time', 0)
        self.update_time = kwargs.get('update_time', 0)
        self.delete_time = kwargs.get('delete_time', 0)

    def __bool__(self):
        return self.job_id is not None